.class Lcom/htc/android/footprints/view/MediaControlPanelViewMode$2;
.super Ljava/lang/Object;
.source "MediaControlPanelViewMode.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/htc/android/footprints/view/MediaControlPanelViewMode;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/htc/android/footprints/view/MediaControlPanelViewMode;


# direct methods
.method constructor <init>(Lcom/htc/android/footprints/view/MediaControlPanelViewMode;)V
    .locals 0
    .parameter

    .prologue
    .line 245
    iput-object p1, p0, Lcom/htc/android/footprints/view/MediaControlPanelViewMode$2;->this$0:Lcom/htc/android/footprints/view/MediaControlPanelViewMode;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 3
    .parameter "arg0"

    .prologue
    .line 234
    iget-object v0, p0, Lcom/htc/android/footprints/view/MediaControlPanelViewMode$2;->this$0:Lcom/htc/android/footprints/view/MediaControlPanelViewMode;

    iget-object v0, v0, Lcom/htc/android/footprints/view/MediaControlPanelViewMode;->mVoiceFile:Ljava/io/File;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/htc/android/footprints/view/MediaControlPanelViewMode$2;->this$0:Lcom/htc/android/footprints/view/MediaControlPanelViewMode;

    iget-object v0, v0, Lcom/htc/android/footprints/view/MediaControlPanelViewMode;->mVoiceFile:Ljava/io/File;

    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v0

    if-nez v0, :cond_0

    .line 237
    :cond_0
    iget-object v0, p0, Lcom/htc/android/footprints/view/MediaControlPanelViewMode$2;->this$0:Lcom/htc/android/footprints/view/MediaControlPanelViewMode;

    iget v0, v0, Lcom/htc/android/footprints/view/MediaControlPanelViewMode;->mState:I

    if-nez v0, :cond_2

    .line 238
    iget-object v0, p0, Lcom/htc/android/footprints/view/MediaControlPanelViewMode$2;->this$0:Lcom/htc/android/footprints/view/MediaControlPanelViewMode;

    #calls: Lcom/htc/android/footprints/view/MediaControlPanelViewMode;->startPlayback()V
    invoke-static {v0}, Lcom/htc/android/footprints/view/MediaControlPanelViewMode;->access$400(Lcom/htc/android/footprints/view/MediaControlPanelViewMode;)V

    .line 244
    :cond_1
    :goto_0
    iget-object v0, p0, Lcom/htc/android/footprints/view/MediaControlPanelViewMode$2;->this$0:Lcom/htc/android/footprints/view/MediaControlPanelViewMode;

    iget-object v1, p0, Lcom/htc/android/footprints/view/MediaControlPanelViewMode$2;->this$0:Lcom/htc/android/footprints/view/MediaControlPanelViewMode;

    #calls: Lcom/htc/android/footprints/view/MediaControlPanelViewMode;->refreshNow()J
    invoke-static {v1}, Lcom/htc/android/footprints/view/MediaControlPanelViewMode;->access$100(Lcom/htc/android/footprints/view/MediaControlPanelViewMode;)J

    move-result-wide v1

    #calls: Lcom/htc/android/footprints/view/MediaControlPanelViewMode;->queueNextRefresh(J)V
    invoke-static {v0, v1, v2}, Lcom/htc/android/footprints/view/MediaControlPanelViewMode;->access$200(Lcom/htc/android/footprints/view/MediaControlPanelViewMode;J)V

    .line 245
    return-void

    .line 239
    :cond_2
    iget-object v0, p0, Lcom/htc/android/footprints/view/MediaControlPanelViewMode$2;->this$0:Lcom/htc/android/footprints/view/MediaControlPanelViewMode;

    iget v0, v0, Lcom/htc/android/footprints/view/MediaControlPanelViewMode;->mState:I

    const/4 v1, 0x2

    if-ne v0, v1, :cond_3

    .line 240
    iget-object v0, p0, Lcom/htc/android/footprints/view/MediaControlPanelViewMode$2;->this$0:Lcom/htc/android/footprints/view/MediaControlPanelViewMode;

    #calls: Lcom/htc/android/footprints/view/MediaControlPanelViewMode;->togglePlayback()V
    invoke-static {v0}, Lcom/htc/android/footprints/view/MediaControlPanelViewMode;->access$500(Lcom/htc/android/footprints/view/MediaControlPanelViewMode;)V

    goto :goto_0

    .line 241
    :cond_3
    iget-object v0, p0, Lcom/htc/android/footprints/view/MediaControlPanelViewMode$2;->this$0:Lcom/htc/android/footprints/view/MediaControlPanelViewMode;

    iget v0, v0, Lcom/htc/android/footprints/view/MediaControlPanelViewMode;->mState:I

    const/4 v1, 0x1

    if-ne v0, v1, :cond_1

    .line 242
    iget-object v0, p0, Lcom/htc/android/footprints/view/MediaControlPanelViewMode$2;->this$0:Lcom/htc/android/footprints/view/MediaControlPanelViewMode;

    #calls: Lcom/htc/android/footprints/view/MediaControlPanelViewMode;->togglePlayback()V
    invoke-static {v0}, Lcom/htc/android/footprints/view/MediaControlPanelViewMode;->access$500(Lcom/htc/android/footprints/view/MediaControlPanelViewMode;)V

    goto :goto_0
.end method
